#include "Event.h"

bool Event::canPollEvent()
{
	SDL_Event event;
	
	while (SDL_PollEvent(&event)) 
	{
		if(event.type == SDL_QUIT)
		{
			SDL_Quit();
			return false;
		}
		else
		{
			printf("SDL_Event %d\n", event.type);
		}
	}
	
	SDL_Delay(1);
	return true;
}